<?php
/**
 * Model dla klasy ProductDescription
 *
 * @author ModGen
 */

class ProductDescription extends DataObject{


	/**
	 * nazwa tabeli
	 */
	static $tableName = 'product_description';

	/**
	 * nazwa klucza tabeli
	 */
	static $classTablePK = 'id_product_description';

	/**
	 * nazwa klasy
	 */
	static $className = __CLASS__;

	/**
	 * tablica mapująca pola klasy
	 */
	static $fields = array(
		'id_product_description' => 'id',
		'id_product' => 'idProduct',
		'id_language' => 'idLanguage',
		'name' => 'name',
		'description' => 'description',
		'seo_keywords' => 'seoKeywords',
		'seo_description' => 'seoDescription',
		'technologies'		=> 'technologies'
	);


	protected $id;
	private $idProduct;
	private $idLanguage;
	private $name;
	private $description;
	private $seoKeywords;
	private $seoDescription;
	private $technologies;


	// -- Konstruktor --


	function __construct( $id = -1 , $idProduct = null, $idLanguage = null, $name = null, $description = null, $seoKeywords = null, $seoDescription = null){
		$this->id = $id;
		$this->idProduct = $idProduct;
		$this->idLanguage = $idLanguage;
		$this->name = $name;
		$this->description = $description;
		$this->seoKeywords = $seoKeywords;
		$this->seoDescription = $seoDescription;
	}



	// -- Get-y i Set-y --

	public function getId(){
		return $this->id;
	}

	public function setId($id){
		$this->id = $id;
	}
	
	public function getTechnologies() {
		return $this->technologies;
	}

	public function setTechnologies($technologies) {
		$this->technologies = $technologies;
	}

	
	
	public function getIdProduct(){
		return $this->idProduct;
	}

	public function setIdProduct($idProduct){
		$this->idProduct = $idProduct;
	}

	
	public function getIdLanguage(){
		return $this->idLanguage;
	}

	public function setIdLanguage($idLanguage){
		$this->idLanguage = $idLanguage;
	}

	
	public function getName(){
		return $this->name;
	}

	public function setName($name){
		$this->name = $name;
	}

	
	public function getDescription(){
		return $this->description;
	}

	public function setDescription($description){
		$this->description = $description;
	}

	
	public function getSeoKeywords(){
		return $this->seoKeywords;
	}

	public function setSeoKeywords($seoKeywords){
		$this->seoKeywords = $seoKeywords;
	}

	
	public function getSeoDescription(){
		return $this->seoDescription;
	}

	public function setSeoDescription($seoDescription){
		$this->seoDescription = $seoDescription;
	}

	




	/**
	* Pobiera nazwę tabeli reprezentującej obiekt w SQL
	* @return string
	*/
	public  function GetTableName(){
	return self::$tableName;
	}

	/**
	* Pobiera nazwę klucza głównego tabeli
	* @return string
	*/
	public function GetClassTablePK() {
		return self::$classTablePK;
	}

	/**
	* Pobiera tablice mapującą pola klasy na pola tabeli
	* @return array
	*/
	public  function GetFields(){
		return self::$fields;
	}

	/**
	* Pobiera nazwę klasy
	* @return string
	*/
	public  function GetClassName(){
		return self::$className;
	}



}

?>